package com.app.partner.service;

import com.app.partner.mapper.UserMapper;
import com.app.partner.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.util.List;
@Service("userServiceImpl")
@EnableTransactionManagement
public class UserServiceImpl implements UserService{
    @Autowired
    private UserMapper userMapper;


    @Override
    public User findAll() throws Exception {
        return userMapper.findAll();
    }


    @Override
    public void save(User user) {
        userMapper.save(user);
    }


}
